package com.smartum.mpr.model;

import org.codehaus.jackson.annotate.JsonProperty;

public class Image extends Identify {

	private static final long serialVersionUID = -2731142218809207429L;

	private String imagePath;

	private Long imageTimestamp;

	protected User owner;

	public Image() {

	}

	@JsonProperty("user")
	public User getOwner() {
		return owner;
	}

	@JsonProperty("user")
	public void setOwner(User owner) {
		this.owner = owner;
	}

	@JsonProperty("image_url")
	public String getImagePath() {
		return imagePath;
	}

	@JsonProperty("image_url")
	public void setImagePath(String imagePath) {
		this.imagePath = imagePath;
	}

	@JsonProperty("image_timestamp")
	public Long getImageTimestamp() {
		return imageTimestamp;
	}

	@JsonProperty("image_timestamp")
	public void setImageTimestamp(Long imageTimestamp) {
		this.imageTimestamp = imageTimestamp;
	}

	@Override
	@JsonProperty("image_id")
	public Long getId() {
		return super.getId();
	}

	@Override
	@JsonProperty("image_id")
	public void setId(Long id) {
		super.setId(id);
	}

}
